package com.rc.saas.tenant.mapper.market;

import com.rc.saas.tenant.common.base.BaseMapper;
import com.rc.saas.tenant.model.market.MarketActivityRecord;
import com.rc.saas.tenant.model.market.MarketActivityRecordExample;
import com.rc.saas.tenant.vo.market.MarketActivityRecordVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface MarketActivityRecordMapper extends BaseMapper<Long, MarketActivityRecord, MarketActivityRecordExample> {

    List<MarketActivityRecordVo> listPageMarketActivityRecord(@Param("tenantCode") String tenantCode, @Param("beginTime") String beginTime, @Param("endTime") String endTime);

    MarketActivityRecord selectLastOneRecord(String tenantCode);

    void batchInsert(@Param("list") List<MarketActivityRecord> list);

}